#include "cj_player.h"
#include <QtWidgets/QApplication>
#include <qsplitter.h>
#include <qtreeview.h>
#include <qlistview.h>
#include <qfilesystemmodel.h>
#include <qtableview.h>

//int main(int argc, char *argv[])
//{
//	QApplication a(argc, argv);
//	cj_player w;
//	w.show();
//	return a.exec();
//}

namespace
{
    enum MyEnum
    {
        HH,
        HU
    };
}
int main(int argc, char *argv[])
{
	QApplication app(argc, argv);
    cj_player player;
    player.show();
	QSplitter *splitter = new QSplitter;

	QFileSystemModel *model = new QFileSystemModel;
	model->setRootPath(QDir::currentPath());

	QTreeView *tree = new QTreeView(splitter);
	tree->setModel(model);
	tree->setRootIndex(model->index(QDir::currentPath()));

	//QTableView *table = new QTableView(splitter);
	//table->setModel(model);
	//table->setRootIndex(model->index(QDir::currentPath()));

	//QListView *list = new QListView(splitter);
	//list->setModel(model);
	//list->setRootIndex(model->index(QDir::currentPath()));

	//splitter->setWindowTitle("Two views onto the same file system model");
	//splitter->show();
	return app.exec();
}